<div class="box box-primary">
	<div class="box-header">
            <h4 class="box_content">Company profile</h4>
        </div>
	<div class="box-body">
		<!-- the events -->
		<div id="external-events">
                        <?php
                            foreach($company_profile as $row){
                                $companyName = $row->company_name;
                                $companyAddress = $row->company_address;
                                $companyWebsite = $row->company_website;
                                $companyDescription = $row->company_description;
                                $employerName = $row->employer_username;
                                $employerEmail = $row->employer_email;
                                $emlpyerMobile = $row->employer_mobile;  
                                $companyLogo = $row->company_logo;
                                
                            }
                         ?>
                         <div class="row">
                            <div class="col-xs-12">
                                 <div id="herobox-mini" style="border:none;">
                                    <ul id="glbreadcrumbs-one">
                                        <li>
                                            <a href="#">Company</a>
                                        </li>
                                    </ul>
                                </div>
                                <table style="width: 100%;" class="table table-bordered table-hover">
                                    
                                    <tr>
                                    
                                        <th>
                                            <p>Name</p>
                                        </th>
                                        <td><?php echo $companyName; ?></td>
                                        </tr>
                                    <tr>
                                        <th>
                                            <p>Address</p>
                                        </th>
                                        <td><?php echo $companyAddress; ?></td>
                                    </tr>
                                    <tr>
                                        <th>
                                            <p>Website</p>
                                        </th>
                                        <td><?php echo $companyWebsite; ?></td>
                                        
                                    </tr>
                                    <tr>
                                        <th>
                                            <p>Description</p>
                                        </th>
                                        <td><?php echo $companyDescription; ?></td>
                                    </tr>
                                    
                                </table>
                            </div>
                            
                            <div class="col-xs-12">
                                <div id="herobox-mini" style="border:none;">
                                    <ul id="glbreadcrumbs-one">
                                        <li>
                                            <a href="#">Employer</a>
                                        </li>
                                    </ul>
                                </div>
                                <table style="width: 100%;" class="table table-bordered table-hover">
                                    
                                    <tr>
                                        <th>
                                            <p>Name</p>
                                        </th>
                                        <td><?php echo $employerName; ?></td>
                                    </tr>
                                    <tr>
                                        <th>
                                            <p>E-mail</p>
                                        </th>
                                        <td><?php echo $employerEmail; ?></td>
                                        
                                    </tr>
                                    <tr>
                                        <th>
                                            <p>Mobile</p>
                                        </th>
                                        <td><?php echo $emlpyerMobile; ?></td>
                                    </tr>
                                    
                                </table>
                            </div>
                            
                            <div class="col-xs-12">
                            <div id="herobox-mini" style="border:none;">
                                    <ul id="glbreadcrumbs-one">
                                        <li>
                                            <a href="#">Job posted by <?php echo $companyName; ?></a>
                                        </li>
                                    </ul>
                                </div>
                                <table style="width: 100%;" id="example2" class="table table-bordered table-hover dataTable" aria-describedby="example2_info" >
                                    <thead>
                                        
                                        <tr>
                                            <th>
                                                <p>Title</p>
                                            </th>
                                            <th>
                                                <p>Location</p>
                                            </th><th>
                                                <p>Hiring</p>
                                            </th><th>
                                                <p>Close date</p>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php
                                            foreach($company_jobs->result() as $job){
                                                $job_title= $job->job_title;
                                                $job_subCategory = $job->sub_categoris_name ;
                                                $job_location = $job->location_name;
                                                $job_hire = $job->job_hire;
                                                $job_avaliable = $job->date_available ;
                                                $job_key = $job->job_key ; 
                                         ?>
                                        <tr>
                                            <td><a href="<?php echo base_url();?>jobs/detail/<?php echo $job_key;?>" class="underline-"><?php echo $job_title; ?></a></td>
                                            <td><?php echo $job_location; ?></td>
                                            <td><?php echo $job_hire; ?></td>
                                            <td style="color: red;"><?php echo date('d-M-Y',strtotime($job_avaliable));?></td>
                                        </tr>
                                        <?php 
                                            }
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                            
                         </div>
        </div>
    </div>
</div>